﻿using System.Collections.Generic;
using System.Data.Entity.Migrations;
using XieCan.AspMVC.Models;

namespace XieCan.AspMVC.Entities.Migrations
{
    internal sealed class Configuration : DbMigrationsConfiguration<EntitiesContext>
    {
        public Configuration()
        {
            // 启用自动迁移
            AutomaticMigrationsEnabled = true;
            // 显式开启允许修改表结构
            // 更改数据库中结构(增加、删除列、修改列、改变列的属性、增加、删除、修改表),需要显示开启。
            AutomaticMigrationDataLossAllowed = true;
        }

        protected override void Seed(EntitiesContext context)
        {
        }
    }
}
